package org.accp.pojo;

public class Apparatu {
    private Integer id;
    private String instName;
    private String insmoney;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getInstName() {
        return instName;
    }

    public void setInstName(String instName) {
        this.instName = instName;
    }

    public String getInsmoney() {
        return insmoney;
    }

    public void setInsmoney(String insmoney) {
        this.insmoney = insmoney;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Apparatu apparatu = (Apparatu) o;

        if (id != apparatu.id) return false;
        if (instName != null ? !instName.equals(apparatu.instName) : apparatu.instName != null) return false;
        if (insmoney != null ? !insmoney.equals(apparatu.insmoney) : apparatu.insmoney != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (instName != null ? instName.hashCode() : 0);
        result = 31 * result + (insmoney != null ? insmoney.hashCode() : 0);
        return result;
    }
}
